﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text.RegularExpressions;
using Enter.Common;

namespace Enter.Web.SystemAdmin.GoodClass
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string str = this.TextBox1.Text.Replace("\r\n", "");
            this.TextBox2.Text = Regex.Replace(str, "\\(\\d+\\)", "、").TrimEnd('、') + "；";
            this.TextBox1.Text = "";
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            string str = this.TextBox1.Text.Replace("\r\n", "").Replace("+", "");
            this.TextBox2.Text = Regex.Replace(str, "\\(\\d+\\)", ":");
            this.TextBox1.Text = "";
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            string str = this.TextBox1.Text.Replace("\r\n", "").Replace("+", "");
            this.TextBox2.Text = Regex.Replace(str, "\\(\\d+\\)", ",");
            this.TextBox1.Text = "";
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            string str = this.TextBox1.Text.Replace("\r\n", "");
            this.TextBox2.Text = Regex.Replace(str, "\\(\\d+\\)", "、").TrimEnd('、') + "*";
            this.TextBox1.Text = "";
        }
        protected void Button6_Click(object sender, EventArgs e)
        {
            string str = this.TextBox1.Text.Replace("}", "}\r\n");
            this.TextBox2.Text = str;
           
        }
    }
}